var config: any = {
    mongoIp: '127.0.0.1',
    mongoDb: 'tinypng',
    mongoPort: '27017',
    picSrc: '',
    picDst: '',
    sqlitePath: '',
    ApiKeys: []
};

export function setConfig(key: string, value: string | any) {
    config[key] = value;
}

export function getConfig(key: string,def?: any) {
    return config[key] || def;
}